<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" CodeBehind="EditEvent.aspx.cs" Inherits="Impact.Web.Admin.EditEvent" %>
<%@ Register Assembly="SubSonic" Namespace="SubSonic" TagPrefix="SubSonic" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <table class="AdminTable">
    
        <tr>
            <th colspan="3">Edit Event</th>
        </tr>
        
        <tr>
            <td>Name:</td>
            <td><asp:TextBox ID="name" runat="server" /></td>
            <td><asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="name" SetFocusOnError="true" 
                ErrorMessage="Name is required" ForeColor="red" runat="server" /></td>
        </tr>
        
        <tr>
            <td>Start Time:</td>
            <td class="calendarInput"><SubSonic:CalendarControl ID="startTime" ShowTime="true" DisplayFormat="g" runat="server"></SubSonic:CalendarControl></td>
            <td><asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="startTime" SetFocusOnError="true" 
                ErrorMessage="Start Time is required" ForeColor="red" runat="server" /></td>
        </tr>
        
        <tr>
            <td>End Time:</td>
            <td class="calendarInput"><SubSonic:CalendarControl ID="endTime" ShowTime="true" DisplayFormat="g" runat="server"></SubSonic:CalendarControl></td>
            <td><asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="endTime" SetFocusOnError="true" 
                ErrorMessage="End Time is required" ForeColor="red" runat="server" /></td>
        </tr>
        
        <tr>
            <td>Location:</td>
            <td><asp:TextBox ID="location" runat="server" /></td>
        </tr>
        
        <tr>
            <td>Email Template:</td>
            <td><asp:DropDownList ID="emailTemplate" runat="server"></asp:DropDownList></td>
        </tr>
        
        <tr>
            <td>Description:</td>
        </tr>
        <tr>
            <td colspan="3"><asp:TextBox ID="description" TextMode="MultiLine" Width="100%" Height="100px" runat="server"></asp:TextBox></td>
        </tr>
                                    
        <tr>
            <td colspan="3" style="text-align: center;">
                <impact:SubmitCancel id="submit" OnSubmit="SubmitCommand" OnCancel="CancelCommand" runat="server" />
            </td>
        </tr>
    </table>   


</asp:Content>